#pragma once
#include <string>
#include "Error.h"
using std::string;

namespace Books{
class Patron
{
public:
	static const int STANDART_INIT_DEBT = 100;
	Patron(string name, int number, int init_debt = STANDART_INIT_DEBT);
	
	string get_name()	const {return reader_name;}
	int get_number()	const {return reader_card_num;}
	int get_curr_debt() const {return reader_debt;}

	void assume_paid(int summ);

private:
	string reader_name;
	int reader_card_num;
	int reader_debt;
};

bool have_debt(const Patron& p);
bool operator == (const Patron& p1, const Patron& p2);
std::ostream& operator << (std::ostream& out, const Patron& p);



}